package org.raymond.iworks.study.basic.designpattern.flyweight;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
public class ConcreteWebSite extends WebSite{
    //网站发布形式
    // 共享的部分,内部状态
    private String type = "";
    public ConcreteWebSite(String type){
        this.type = type;
    }
    @Override
    public void use(User user) {
        System.out.println("网站的发布形式为:"+type+","+user.getName()+"在使用");
    }
}
